package com.baishui.gateway.constant;

public enum InterfaceType {
    RPC("rpc"),

    HTTP("http");

    private String name;

    InterfaceType(String name) {
        this.name = name;
    }

    public static InterfaceType getType(String type) {
        switch (type) {
            case "rpc":
                return RPC;
            case "http":
                return HTTP;
        }
        return null;
    }
}
